package com.ruoyi.quartz.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quartz.mapper.StockRealTimeMapper;
import com.ruoyi.quartz.domain.StockRealTime;
import com.ruoyi.quartz.service.IStockRealTimeService;

/**
 * 实时交易Service业务层处理
 * 
 * @author czz
 * @date 2024-04-24
 */
@Service
public class StockRealTimeServiceImpl implements IStockRealTimeService 
{
    @Autowired
    private StockRealTimeMapper stockRealTimeMapper;

    /**
     * 查询实时交易
     * 
     * @param id 实时交易主键
     * @return 实时交易
     */
    @Override
    public StockRealTime selectStockRealTimeById(Long id)
    {
        return stockRealTimeMapper.selectStockRealTimeById(id);
    }

    /**
     * 查询实时交易列表
     * 
     * @param stockRealTime 实时交易
     * @return 实时交易
     */
    @Override
    public List<StockRealTime> selectStockRealTimeList(StockRealTime stockRealTime)
    {
        return stockRealTimeMapper.selectStockRealTimeList(stockRealTime);
    }

    /**
     * 新增实时交易
     * 
     * @param stockRealTime 实时交易
     * @return 结果
     */
    @Override
    public int insertStockRealTime(StockRealTime stockRealTime)
    {
        return stockRealTimeMapper.insertStockRealTime(stockRealTime);
    }

    /**
     * 修改实时交易
     * 
     * @param stockRealTime 实时交易
     * @return 结果
     */
    @Override
    public int updateStockRealTime(StockRealTime stockRealTime)
    {
        return stockRealTimeMapper.updateStockRealTime(stockRealTime);
    }

    /**
     * 批量删除实时交易
     * 
     * @param ids 需要删除的实时交易主键
     * @return 结果
     */
    @Override
    public int deleteStockRealTimeByIds(Long[] ids)
    {
        return stockRealTimeMapper.deleteStockRealTimeByIds(ids);
    }

    /**
     * 删除实时交易信息
     * 
     * @param id 实时交易主键
     * @return 结果
     */
    @Override
    public int deleteStockRealTimeById(Long id)
    {
        return stockRealTimeMapper.deleteStockRealTimeById(id);
    }
}
